package com.spring.simple;

import javax.annotation.PostConstruct;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

@Component
public class CenterService {
	
	private static final Logger log = Logger.getLogger(CenterService.class);

	public CenterService(){
		log.info("------------类被加载了-----------");
	}
	
	@PostConstruct
	public void run(){
		log.info("--------------调用了初始化方法----------------");
	}
}
